package com.hyfrogx.modules.sys.oauth2;


import org.apache.shiro.authc.AuthenticationToken;

/**
 * TODO 自定义token扩展AuthenticationToken
 *
 * @author crazypenguin
 * @version 1.0.0
 * @createdate 2019/1/2
 */
public class MyToken implements AuthenticationToken {
    private String token;

    public MyToken(String token){
        this.token = token;
    }

    @Override
    public String getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
